package it.gmariotti.cardslib.demo;

import it.gmariotti.cardslib.demo.fragment.NativeDashFragment;
import it.gmariotti.cardslib.demo.fragment.nativeview.*;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(NativeDashFragment.class.getName());
        // set the action route
        addActionRoute("action.Header", NativeHeaderFragment.class.getName());
        addActionRoute("action.Shadow", NativeShadowFragment.class.getName());
        addActionRoute("action.Thumbnail", NativeThumbnailFragment.class.getName());
        addActionRoute("action.Card", NativeCardFragment.class.getName());
        addActionRoute("action.CardExpand", NativeCardExpandFragment.class.getName());
        addActionRoute("action.MaterialCard", NativeMaterialCardFragment.class.getName());
        addActionRoute("action.TopColoredCard", NativeTopColoredCardFragment.class.getName());
        addActionRoute("action.CardWithList", NativeCardWithListFragment.class.getName());
        addActionRoute("action.GPlayCard", NativeGPlayCardFragment.class.getName());
        addActionRoute("action.BirthDayCard", NativeBirthDayCardFragment.class.getName());
        addActionRoute("action.MiscCard", NativeMiscCardFragment.class.getName());
        addActionRoute("action.ChangeValueCard", NativeChangeValueCardFragment.class.getName());
        addActionRoute("action.ListBase", NativeListBaseFragment.class.getName());
//        addActionRoute("action.ListExpandCard", NativeListExpandCardFragment.class.getName());
        addActionRoute("action.ListSectionedCard", NativeListSectionedCardFragment.class.getName());
        addActionRoute("action.ListGplayCard", NativeListGplayCardFragment.class.getName());
        addActionRoute("action.ListGplayUndoCard", NativeListGplayUndoCardFragment.class.getName());
        addActionRoute("action.ListDifferentInner", NativeListDifferentInnerBaseFragment.class.getName());
        addActionRoute("action.ListColor", NativeListColorFragment.class.getName());
        addActionRoute("action.GridGplay", NativeGridGplayFragment.class.getName());
    }
}
